package com.main.controller;

import com.main.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author admin
 * @date 2019/05/20
 */
@Controller
@RequestMapping(value = "dateEntityController")
public class DateEntityController {

    @RequestMapping(value = "loadDate")
    public void loadUser(@ModelAttribute User user, Model model) {
        System.out.println("获取的user是:" + user);
        model.addAttribute("user", user);
    }

}
